import request from '@/http/request'

export const getCommet = (params) => {
  return request({
    url: '/getAllMessage',
    method: 'GET',
    params
  })
}

export const changeStatus = (data) => {
  return request({
    url: '/message',
    method: 'post',
    data
  })
}

export const deleteComment = target => {
  return request({
    url: '/message',
    params: {
      target
    },
    method: 'DELETE'
  })
}
